<?php

	/**
	 * @see Bike_Js_Ext_form_field_Base
	 */
	require_once 'Bike/Js/Ext/form/field/Base.php';
	
	
	class Bike_Js_Ext_form_field_Text extends Bike_Js_Ext_form_field_Base
	{
		static protected $_xType = 'textfield';

		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'submitEmptyText' => False,
               	'inputType' => 'text',
               	'maxLengthText' => $this->translate('The maximum length for this field is {0}'),
               	'minLengthText' => $this->translate('The minimum length for this field is {0}'),
               	'regexText' => $this->translate('The value in this field is invalid'),
			));
		}
	}
